package com.wms.common.fusionchart.bean;

public class Set {
	private String label;
	private String value;
	private String color;
	private String isSliced="0";
	private String toolText="";
	
	public Set(){}
	
	public Set(String label, String value, String color){
		this.setLabel(label);
		this.setValue(value);
		this.setColor(color);
	}
	public Set(String label, String value){
		this.setLabel(label);
		this.setValue(value);
	}
	
	
	public String getToolText() {
		return toolText;
	}
	public void setToolText(String toolText) {
		String[] texts=toolText.split("\\{br\\}");
		String newText="";
		if(texts.length<20){
			this.toolText = toolText;
		}else{
			for(int i=0;i<20;i++){
			     newText += texts[i]+"{br}";
			}
			this.toolText =newText +" ...";	   
		}
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public String getLabel() {
		return label;
	}

	public void setIsSliced(String isSliced) {
		this.isSliced = isSliced;
	}

	public String getIsSliced() {
		return isSliced;
	}
	
	
}
